#include <stdio.h>

struct Student
{
    int id;
    char Name[20];
    void (*show)(struct Student *s);
};

typedef struct Student stu;

void show(stu *s)
{
    printf("%d %s\n",s->id,s->Name);
}
int main()
{
    stu s = {1,"zhangsan",show};
    s.show(&s);
    return 0;
}